package team.southcat.wsyygh.statistics.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import team.southcat.wsyygh.common.result.Result;
import team.southcat.wsyygh.model.pojo.order.OrderCountQueryVo;
import team.southcat.wsyygh.order.client.OrderFeignClient;


import java.util.Map;
@Api(tags = "预约统计管理接口")
@RestController
@RequestMapping("/admin/statistics")
public class StatisticsController {

    @Autowired
    private OrderFeignClient orderFeignClient;


    @ApiOperation("获取预约的统计数据")
    @GetMapping("getCountMap")
    public Result getCountMap(OrderCountQueryVo orderCountQueryVo){

        Map<String, Object> countMap = orderFeignClient.getCountMap(orderCountQueryVo);
        return Result.ok(countMap);
    }



}
